package top.bug.blog.entity.dto.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import top.bug.blog.constant.CommonConstants;

/**
 * @author <a href="https://github.com/jiusi66">九思.</a>
 * @email 10837907@qq.com
 * @from <a href="https://www.52bug.top">递归茶馆-www.52bug.top</a>
 */
@Data
@ApiModel("分页请求实体")
public class PageRequest {

    @ApiModelProperty("当前页号")
    private int pageNum = 1;

    @ApiModelProperty("页面大小")
    private int pageSize = 10;

    @ApiModelProperty("排序字段")
    private String sortField;

    @ApiModelProperty("排序顺序（默认升序）")
    private String sortOrder = CommonConstants.SORT_ORDER_ASC;

    @ApiModelProperty("创建时间")
    private String[] createTimeRange;

    @ApiModelProperty("修改时间")
    private String[] updateTimeRange;

}